<?php
namespace BP\Frm;
require_once("BP/En/Map.php");
class Method extends EntityMyPK {
	public function getFrmID () 
	{
		return $this->GetValStringByKey(MethodAttr::$FrmID);
	}
	public function setFrmID ($value) // [String value]
	{
		$this->SetValByKey(MethodAttr::$FrmID, $value);
	}
	public function getMethodID () 
	{
		return $this->GetValStringByKey(MethodAttr::$MethodID);
	}
	public function setMethodID ($value) // [String value]
	{
		$this->SetValByKey(MethodAttr::$MethodID, $value);
	}
	public function getMethodName () 
	{
		return $this->GetValStringByKey(MethodAttr::$MethodName);
	}
	public function setMethodName ($value) // [String value]
	{
		$this->SetValByKey(MethodAttr::$MethodName, $value);
	}
	public function getRefMethodType () 
	{
		return $RefMethodType->forValue($this->GetValIntByKey(MethodAttr::$RefMethodType));
	}
	public function setRefMethodType ($value) // [RefMethodType value]
	{
		$this->SetValByKey(MethodAttr::$RefMethodType, $value->getValue());
	}
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public function getEnMap () 
	{
		if (($this->get_enMap() != NULL))
		{
			return $this->get_enMap();
		}
		$map = new Map("Frm_Method", "表单方法");
		$map->AddMyPK();
		$map->AddTBString(MethodAttr::$FrmID, NULL, "表单ID",  TRUE ,  FALSE , 0, 300, 10);
		$map->AddTBString(MethodAttr::$MethodID, NULL, "方法ID",  TRUE ,  FALSE , 0, 300, 10);
		$map->AddTBString(MethodAttr::$MethodName, NULL, "方法�?",  TRUE ,  FALSE , 0, 300, 10);
		$map->AddTBString(MethodAttr::$WarningMsg, NULL, "功能执行警告信息",  TRUE ,  FALSE , 0, 300, 10);
		$map->AddDDLSysEnum(MethodAttr::$RefMethodType, 0, "方法类型",  TRUE ,  FALSE , MethodAttr::$RefMethodType, "@0=功能@1=模�?�窗口打�?@2=新窗口打�?@3=右侧窗口打开@4=实体集合的功�?");
		$map->AddBoolean(MethodAttr::$IsMyBillToolBar,  TRUE , "是否显示在MyBill.htm工具栏上",  TRUE ,  TRUE ,  TRUE );
		$map->AddBoolean(MethodAttr::$IsMyBillToolExt,  FALSE , "是否显示在MyBill.htm工具栏右边的更多按钮�?",  TRUE ,  TRUE ,  TRUE );
		$map->AddBoolean(MethodAttr::$IsSearchBar,  FALSE , "是否显示在Search.htm工具栏上(用于批处�?)",  TRUE ,  TRUE ,  TRUE );
		$map->AddTBInt(MethodAttr::$PopHeight, 0, "弹窗高度",  TRUE ,  FALSE );
		$map->AddTBInt(MethodAttr::$PopWidth, 0, "弹窗宽度",  TRUE ,  FALSE );
		$map->AddTBString(MethodAttr::$MsgSuccess, NULL, "成功提示信息",  TRUE ,  FALSE , 0, 300, 10,  TRUE );
		$map->AddTBString(MethodAttr::$MsgErr, NULL, "失败提示信息",  TRUE ,  FALSE , 0, 300, 10,  TRUE );
		$map->AddDDLSysEnum(MethodAttr::$WhatAreYouTodo, 0, "执行完毕后干啥？",  TRUE ,  TRUE , MethodAttr::$WhatAreYouTodo, "@0=关闭提示窗口@1=关闭提示窗口并刷新@2=转入到Search.htm页面上去");
		$map->AddTBInt(MethodAttr::$Idx, 0, "Idx",  TRUE ,  FALSE );
		$this->set_enMap($map);
		return $this->get_enMap();
	}
	public function DoUp () 
	{
		$this->DoOrderUp(MethodAttr::$FrmID, $this->getFrmID(), MethodAttr::$Idx);
	}
	public function DoDown () 
	{
		$this->DoOrderDown(MethodAttr::$FrmID, $this->getFrmID(), MethodAttr::$Idx);
	}
	protected function beforeUpdateInsertAction () 
	{
		return parent->beforeUpdateInsertAction();
	}
}
?>
